1234567891011121314151617181920212223242526272829303132 |
- import Box from "@/components/Box";
- import HeaderBack from "@/components/HeaderBack";
- import { getTranslations } from "next-intl/server";
- import { ReactNode } from "react";
- export const generateMetadata = async () => {
- const t = await getTranslations("titles");
- return {
- title: t("cashback"),
- };
- };
- export default async function Layout({
- children,
- params: { locale },
- }: {
- children: ReactNode;
- params: { locale: string };
- cashbackInfo: ReactNode;
- // cashbackTable: ReactNode;
- }) {
- const t = await getTranslations("cashback");
- return (
- <>
- <HeaderBack showBack={true} title={t("cashbackTitle")} />
- <main className={"main-header bg-[#1f2225] text-[#000]"}>
- <Box>
- {/*{cashbackTable}*/}
- {children}
- </Box>
- </main>
- </>
- );
- }
|